.class Lcom/xingbook/ui/overclass/n;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/media/MediaPlayer$OnErrorListener;


# instance fields
.field final synthetic a:Lcom/xingbook/ui/overclass/VideoView;


# direct methods
.method constructor <init>(Lcom/xingbook/ui/overclass/VideoView;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/ui/overclass/n;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/ui/overclass/n;)Lcom/xingbook/ui/overclass/VideoView;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/n;->a:Lcom/xingbook/ui/overclass/VideoView;

    return-object v0
.end method


# virtual methods
.method public onError(Landroid/media/MediaPlayer;II)Z
    .locals 4

    const/4 v3, 0x1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/n;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->f(Lcom/xingbook/ui/overclass/VideoView;)Lcom/xingbook/ui/overclass/c;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/n;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->f(Lcom/xingbook/ui/overclass/VideoView;)Lcom/xingbook/ui/overclass/c;

    move-result-object v0

    invoke-interface {v0}, Lcom/xingbook/ui/overclass/c;->d()V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/ui/overclass/n;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->d(Lcom/xingbook/ui/overclass/VideoView;)Lcom/xingbook/ui/overclass/s;

    move-result-object v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/ui/overclass/n;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->d(Lcom/xingbook/ui/overclass/VideoView;)Lcom/xingbook/ui/overclass/s;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ui/overclass/n;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v1}, Lcom/xingbook/ui/overclass/VideoView;->e(Lcom/xingbook/ui/overclass/VideoView;)Landroid/media/MediaPlayer;

    move-result-object v1

    invoke-interface {v0, v1, p2, p3}, Lcom/xingbook/ui/overclass/s;->a(Landroid/media/MediaPlayer;II)Z

    move-result v0

    if-eqz v0, :cond_2

    :cond_1
    :goto_0
    return v3

    :cond_2
    iget-object v0, p0, Lcom/xingbook/ui/overclass/n;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-virtual {v0}, Lcom/xingbook/ui/overclass/VideoView;->getWindowToken()Landroid/os/IBinder;

    move-result-object v0

    if-eqz v0, :cond_1

    const/16 v0, 0xc8

    if-ne p2, v0, :cond_3

    const-string v0, "\u683c\u5f0f\u4e0d\u652f\u6301"

    :goto_1
    new-instance v1, Landroid/app/AlertDialog$Builder;

    iget-object v2, p0, Lcom/xingbook/ui/overclass/n;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v2}, Lcom/xingbook/ui/overclass/VideoView;->h(Lcom/xingbook/ui/overclass/VideoView;)Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const-string v2, "\u64ad\u653e\u9519\u8bef"

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const-string v1, "\u786e\u5b9a"

    new-instance v2, Lcom/xingbook/ui/overclass/o;

    invoke-direct {v2, p0}, Lcom/xingbook/ui/overclass/o;-><init>(Lcom/xingbook/ui/overclass/n;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setCancelable(Z)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    goto :goto_0

    :cond_3
    const-string v0, "\u672a\u77e5\u9519\u8bef"

    goto :goto_1
.end method
